<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>管理员界面</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" href="forum/css/style.css" type="text/css" />
		<link rel="stylesheet" href="forum/css/admin.css" type="text/css" />

		<script type="text/javascript" src="forum/js/mycheck.js">
	</script>
	</head>

	<body>
		<jsp:include page="../include/header.jsp"></jsp:include>
		<table class="loginTable" border="0" align="center">

			<!--主题内容区-->
			<jsp:include page="../include/welcomeBanner.jsp"></jsp:include>

			<tr>
				<td class="currentPos" colspan="3">
					<div style="float: left; width: 400px">
						<img src="forum/img/current.png" />
						当前位置：
						<span class="pos"> <s:a action="init" namespace="/">首页</s:a>->
							<s:a>管理员管理</s:a> </span>
					</div>
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<hr size="4" color="#B5BAC7" style="margin-top: 0px;">
				</td>
			</tr>

			<tr>
				<td>
					<div style="float: left;">
						<ul class="glossymenu">
							<li>
								<s:a action="admin!loadSections.action" namespace="/">版块管理</s:a>
							</li>
							<li id="selected">
								<s:a href="admin!loadRegisters.action" namespace="/">用户审核</s:a>
							</li>
							<li>
								<s:a href="admin!loadUsers.action" namespace="/">用户权限</s:a>
							</li>
							<li>
								<a href="javascript:void(0)" style="border-bottom-width: 0">其他管理</a>
							</li>
						</ul>
					</div>
					<div id="manager">
						<div id="content">
							<!-- 版块管理 -->

							<table border="0" width="100%">
								<tr height="30px" bgcolor="#deb6ff">
									<td colspan="5">
										用户审核
									</td>
								</tr>
								<tr bgcolor="#C3CAF8">
									<td>
										全选
										<input type="checkbox" id="selectAll" onclick="checkAll()" />
									</td>
									<td>
										昵称
									</td>
									<td>
										头像
									</td>
									<td>
										邮箱
									</td>
									<td>
										操作
									</td>
								</tr>
								<s:iterator var="user" value="userList" status="status">
									<tr class="<s:if test="#status.even">row-even</s:if><s:else>row-odd</s:else>">
										<td>
											<input type="checkbox" id="<s:property value="#user.id"/>"
												name="ckeckbox" />
										</td>
										<td>
											<s:property value="#user.name" />
										</td>
										<td>
											<img src='<s:property value="#user.picture"/>' height="50px"
												width="50px" />

										</td>
										<td>
											<s:property value="#user.email" />
										</td>
										<td>
											<s:a action="admin!ignore.action">
												<s:param name="uid">
													<s:property value="#user.id" />
												</s:param>
											忽略
											</s:a>
										</td>
									</tr>
								</s:iterator>
							</table>
						</div>
						<div id="addPos">
							<table>
								<tr>
									<td>
										<input type="button" value="审核通过" onclick="registerPermit()" />
									</td>
									<td>
										<input type="button" value="全部忽略" onclick="ignore()" />
									</td>
								</tr>
							</table>
						</div>
					</div>

				</td>
			</tr>
		</table>
		<jsp:include page="../include/footer.jsp"></jsp:include>
	</body>

</html>
